<%@page import="Model.Supplier.SupplierUserView"%>
<%@page import="Model.Supplier.SupplierList"%>
<%@page import="RssEasy.DAL.Pagination"%>
<%@page import="Model.User.UserList"%>
<%@page import="Model.Purchase.PurchaseMaterielListView"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%
   SupplierUserView sup  =new SupplierUserView(pageContext);
   SupplierUserView num  =new SupplierUserView  (pageContext);
   String k = request.getParameter("keywords");
   String materielname = sup.get("keywords");
   sup.select("corpname,myid,ame,fax,mainbusiness,userfulladress,telphone,linkname").where("corpname like '%"+k+"%'").get_page_desc("myid");
   num.select("count(*) as num").where("corpname like '%"+k+"%'").get_first_rows();
   int numb =(int)Math.ceil(Integer.parseInt(num.get("num"))/10.0);
%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>企企通-搜索结果</title>
        <meta name="description" content="这里写网站内容描述" />
        <meta name="keywords" content="这里写关键词" />
        <meta name="Robots" contect="all">
        <link href="/css/reset.css" rel="stylesheet" type="text/css"/>
        <link href="/inc/head.css" rel="stylesheet" type="text/css"/>
        <link href="/inc/footer.css" rel="stylesheet" type="text/css"/>
        <link href="/css/search_qiye.css" rel="stylesheet" type="text/css"/>
    </head>
    <body>
        <%@include file="/inc/head.jsp" %>
        
        <p>当前位置：<span>企业搜索列表</span></p>
        <div id="main">
            <form id="form" action="/search_qiyexiangqing" method="post">
            <div id="proviso">
                筛选条件：
<!--                 <select id="province" name="shengid" value="">
                        <option value="">省</option>
                    </select>
                    <select id="city" name="shiid" value="">
                        <option value="">市</option>
                    </select>
                    <select id="district" name="xianid" value="">
                        <option value="">县/区</option>
                    </select>-->
                    <input id="sousuo" type="text" name="keywords" placeholder="请输入关键词" value="<%=k%>"/>
                    <button type="button" id="search">查询</button>
            </div>
            </form>  
            <h2>结果列表<span id="num">共有<%num.write("num");%>条 </span></h2>
            <div id="list">
                <ul>
                    <%
                      while(sup.for_in_rows()) {
                    %>
                    <li>
                        <a class='name' href="/supplier/home/<%sup.write("myid");%>" target="blank"><%sup.write("corpname");%></a>
<!--                        <h2>联系人：<a class="company" href='#' target="blank"></a><%sup.write("linkname");%></h2>
                        <h3>联系方式：<span class="addr"><%sup.write("telphone");%></span></h3>
                        <h4>主营品类：<span><%sup.write("mainbusiness");%></span></h4>
                        <h5>所在地区：<span><%sup.write("userfulladress");%></span></h5>-->
                        <h2>主营品类：<span id="sp"><%sup.write("mainbusiness");%></span></h2>
                       <h3>所在地区：<span><%sup.write("userfulladress");%></span></h3>
                       <h4>联系人：<a class="company" href='#' target="blank"></a><%sup.write("linkname");%></h4>
                       <h5>联系方式：<span class="addr"><%sup.write("telphone");%></span></h5>
                    </li>
                    <%
                                                        }
                    %>
                </ul>
                <div id='page_navigation' class="w1000">
                  <a href= "javascript:void(0);" id="first" onclick ="first()" sort="">首页</a>
            <a href= "javascript:void(0);" id="previous" onclick ="previous()" sort="">上一页</a>
            <a><b>1</b>/<b><%=numb%></b></a>
            <a href= "javascript:void(0);" id="next" onclick ="next()" sort="">下一页</a>
            <a href= "javascript:void(0);" id="last" onclick ="last()" sort="">尾页</a>
            <a>跳转</a>
            <input type="text" name="jump" value=""/>
            <a href= "javascript:void(0);" id="jump" onclick ="jump()" sort="">确定</a>
                </div>
            </div>
            <div id="empty">
                <h1>抱歉，没有符合条件的结果信息~</h1>
                <h2>您还可以尝试以下方法：</h2>
                <ul>
                    <li>查看搜索的条件是否选择正确；</li>
                    <li>试试其他同义字词；</li>
                    <li>可以致电您的客服经理寻求帮助；</li>
                </ul>
            </div>
        </div>
        <%@include file="/inc/footer.jsp"%>
        <%@include file="/inc/js_all.html"%>
        <script src="/js/arealist.js" type="text/javascript"></script>
        <script src="/data/dictdata.js" type="text/javascript"></script>
        <script src="/js/search_qiye.js" type="text/javascript"></script>
    </body>
</html>
